<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>模拟炒股</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,target-densitydpi = medium-dpi">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-touch-fullscreen" content="YES">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<script src="/c_modules/jquery.min.js"></script>
<script src="/c/TZT.js"></script>
<script type="text/javascript" src="/home_new/js/md5.js"></script>
<script type="text/javascript" src="/home_new/js/jsencrypt.js"></script>
<script>
    var u = navigator.userAgent;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    $(function(){
        T.readLocalMesg(['MOBILECODE'],function(oLocal){
            var MOBILECODE = oLocal.MOBILECODE;
            if(MOBILECODE=='' || !MOBILECODE||MOBILECODE=='null'){
                T.fn.action10061('http://action:58130/?url='+encodeURIComponent('home_new/monichaogu.html'));
            }else{
                T.readMapMesg(['mncgurl'],function(oLocal){
                    var url = oLocal.MNCGURL;
                    //url += '&mobile='+encodeURIComponent(MOBILECODE);
                    if(url.indexOf("10061")>-1){
                        url=url.split("10061?url=")[1]
                    }
                    MOBILECODE=window.btoa(encodeURIComponent(MOBILECODE));
                    url += '&mobile='+MOBILECODE;
                    console.log(url);
                    if(isAndroid){
                        T.fn.changeurl('http://action:1964/?url=' + encodeURIComponent(url));
                    }
                    if(isiOS){
                        //T.fn.changeurl(encodeURIComponent(url));
                        T.fn.action10061(url);
                    }

                })
            }
        })
    })
    function encryptRsa(publickkey,md5key,str){
        var encrypt = new JSEncrypt();
        encrypt.setPublicKey(publickkey);
        // var data=encrypt.base64(str);
        // var encrypted = encrypt.encrypt(str);//rsa加密
        var data = encrypt.enbase64(str);//把base64转成16进制
        var mac = md5('from12data' + data + md5key);
        return {
            data:data,
            mac:mac
        };
    }
    window.GoBackOnLoad = function(){

    }
</script>
</body>
</html>